package org.paradise.dms.dao.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.paradise.dms.pojo.Apartment;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.BaseHibernateDao;
@Service
public class JasperDAOImpl extends BaseHibernateDao<Apartment> {
	private static Logger log = Logger.getLogger(ApartmentDAOImpl.class);
	/**
	 * 
	 * Description: 列出所有的公寓，在按公寓名选择统计的报表中用到
	 * @Version1.0 Aug 6, 2009 9:19:18 AM 郑旭（zhengxu2006@gmail.com）创建
	 * @return
	 */
	public List<Apartment> listAllApartment() {
		List<Apartment> list = null;
		list = this.find("from Apartment where apartmentind=1");
		return list;
	}
}
